﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace PRE.Thongke_Baocao
{
    public partial class FrmchitietcacDNsanxuatSPkocungLV : DevExpress.XtraEditors.XtraForm
    {
        DAL.ThongKeBaoCaoDAL _dal = new DAL.ThongKeBaoCaoDAL();
        public FrmchitietcacDNsanxuatSPkocungLV()
        {
            InitializeComponent();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FrmchitietcacDNsanxuatSPkocungLV_Load(object sender, EventArgs e)
        {
            DataTable _dtb = _dal.select_chitietDNsxSPkhongdungLV(madn);
            grcMain.DataSource = _dtb;
            txtmadn.DataBindings.Clear();
            txttendn.DataBindings.Clear();
            txtdc.DataBindings.Clear();
            txtdt.DataBindings.Clear();
            txtfax.DataBindings.Clear();
            txtmalv.DataBindings.Clear();
            txttenlv.DataBindings.Clear();

            txtmadn.DataBindings.Add("EditValue", _dtb, ".MSDN");
            txtdc.DataBindings.Add("EditValue", _dtb, ".DC");
            txttendn.DataBindings.Add("EditValue", _dtb, ".TENDN");
            txtdt.DataBindings.Add("EditValue", _dtb, ".DT");
            txtfax.DataBindings.Add("EditValue", _dtb, ".FAX");
            txtmalv.DataBindings.Add("EditValue", _dtb, ".MSLVDN");
            txttenlv.DataBindings.Add("EditValue", _dtb, ".TENLVDN");

        }
        public string madn;
        

    }
}